<?php
declare(strict_types=1);

namespace App\Cola\Amqp\Producers;


use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;

#[Producer(exchange: 'bill_submit_exchange', routingKey: 'bill_submit_routing_key')]
class BillSubmitProducer extends ProducerMessage
{
    public function __construct($data)
    {
        $this->setPayload($data);
    }

    public function getType(): Type
    {
        return Type::DIRECT;
    }
}